package com.sy.controller;

import com.sy.dto.AdminMenuDto;
import com.sy.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * description: MenuController <br>
 * date: 2022/6/24 11:06 AM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("menu")
public class MenuController {
    @Autowired
    private MenuService menuService;

    @RequestMapping("admin")
    public List<AdminMenuDto> getAllAdminMenu(){
        return menuService.getAdminMenu();
    }
}
